package com.nec.recommend.module.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("修改密码对象")
public class UpdatePwdVO {
    @ApiModelProperty("旧密码")
    @NotBlank(message = "旧密码不能为空")
    private String oldPwd;
    @ApiModelProperty("新密码")
    @NotBlank(message = "新密码不能为空")
    @Length(min = 6, max = 16, message = "密码只能在6位到16位之间")
    private String newPwd;
}
